<%@ page import="com.system.dao.ChargeDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ui" uri="http://com.am.tag" %>
<%@ include file="../common.jsp" %>
<%
	ChargeDao dao = new ChargeDao();
	List<Map<String,Object>> list = dao.getChargeListNow(user.getId(),user.getCampus());
	pageContext.setAttribute("list", list);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
  <head>
    <title>My JSP 'chargeList.jsp' starting page</title>
    <link rel="stylesheet" type="text/css" href="${path }/css/leftMenu.css">
    <style type="text/css">
    	/* body{
    		font-size: 15px;
    		
    	} */
    
    </style>
         
    <script type="text/javascript">
	
		function refresh(){
			location.reload();
		}
		
		function dlClicked(obj,record_id)
		{
			$("#leftFrame").attr("src","${path}/jsp/charge/leftMenu.jsp?record_id=" + record_id);
		}
		
		function selected(obj){
		 	$(obj).addClass("selected");
		}
		
		function notselected(obj){
		 	$(obj).removeClass("selected");
		}

	</script>
    
     
  </head>
  
  <body style="overflow-x: hidden;overflow-y:hidden;">
  	<input type="hidden" value="" id="personId" name="personId">
	<input type="hidden" value="" id="record_id" name="record_id">
	<input id="" name="" type="hidden" value="${currentUserName}">
	
	<table cellSpacing="0" cellPadding="0" width="100%">
		<tr>
			<td class="windowTitle" colspan="2">挂号收费 &gt;门诊收费</td>
		</tr>
	</table>
	
	<div style="position:absolute;float:left">
			<table cellSpacing="0" cellPadding="0" width="150px" height="543px" >
			<tr>
				<td>
			    	<div class="left">
						<div class="menuLeft">
							<div style="float:left">
								<h3><img src="${path }/images/ico1.gif" style="margin-left: 5px;margin-top:4px;"><span style="font-size:13px;">正在收费</span>&nbsp;&nbsp;
										<a href="javascript:void(0);" ></a>
										<img onclick="refresh()" src="${path }/images/common/refresh.png"/>
								</h3>
							</div>
							<div >
								<ul>
									<c:forEach items="${list}" varStatus="status" var="obj">
										<li onmouseleave="notselected(this)"  onmouseover="selected(this)" style="padding-bottom:2px;padding-top:2px;font-family:微软雅黑;line-height:22px">
											<a id="a_${status.count}" style='width: 120px'  ondblclick="dlClicked(this,'${obj.id}')" href='javascript:void(0);'>${obj.person_name}</a>
										</li>
									</c:forEach>
								</ul>		
							</div>
						</div>
					</div>
			    </td>
			</tr>
		</table>
	</div>
	
	<div>
		<iframe id="leftFrame" name="leftFrame" src="${path}/jsp/charge/leftMenu.jsp" width="100%" height="100%" frameborder="0"></iframe>
	</div>
	
  </body>
</html>
